<?php
class ListAction extends BaseAction
{
    public function index()
    {
        $cate_id = $this->_get('id');
        $this->get_index_image();
        $this->get_deal_cate_list();
        $status = is_null($this->_get('status')) ? 'all' : $this->_get('status');
        $type = is_null($this->_get('type')) ? 'new' : $this->_get('type');
        $this->get_deal_list($cate_id, false, false, $type, false, false, false, null,$status, 'sort', 'desc', 10, true);
        if($cate_id>0)
            $this->assign('cate_id',$cate_id);
        $this->assign('type',$type);
        $this->assign('status',$status);
        $this->display();
    }
}